//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet
{
    public class OutlineProperties: IOfficeXmlSerializable
    {
        #region IOfficeXmlSerializable Members

        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            using (ReadContext c = context.Read("outlinePr"))
            {
                ApplyStyles = c.GetOptionalBoolean("applyStyles", false);
                SummaryBelow = c.GetOptionalBoolean("summaryBelow", true);
                SummaryRight = c.GetOptionalBoolean("summaryRight", true);
                ShowOutlineSymbols = c.GetOptionalBoolean("showOutlineSymbols", true);
            }
        }

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            using (context.Write("outlinePr"))
            {
            }
        }

        #endregion

        private bool _applyStyles;

        public bool ApplyStyles
        {
            get { return _applyStyles; }
            set { _applyStyles = value; }
        }
        private bool _summaryBelow = true;

        public bool SummaryBelow
        {
            get { return _summaryBelow; }
            set { _summaryBelow = value; }
        }
        private bool _summaryRight = true;

        public bool SummaryRight
        {
            get { return _summaryRight; }
            set { _summaryRight = value; }
        }
        private bool _showOutlineSymbols = true;

        public bool ShowOutlineSymbols
        {
            get { return _showOutlineSymbols; }
            set { _showOutlineSymbols = value; }
        }
	
	
	
    }
}
